package com.cqu.hospitalsystem.Vo;


import lombok.*;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

@NoArgsConstructor
@AllArgsConstructor
/**
 * 未完成预约记录列表
 */
public class undoVo {
    private Long regId;    //挂号单ID
    private String docName;    //医生名称
    private Date appointmentTime; //预约时间
    private Date regTime;    //挂号时间
    private String officeName; //就诊科室
    private Integer state;    //挂号单状态
    private Long queueNumber;  //排队号
    private Integer docPrice;
    private SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

    public Long getRegId() {
        return regId;
    }

    public void setRegId(Long regId) {
        this.regId = regId;
    }

    public String getDocName() {
        return docName;
    }

    public void setDocName(String docName) {
        this.docName = docName;
    }

    public String getAppointmentTime() {
        return this.sdf.format(appointmentTime);
    }

    public void setAppointmentTime(Date appointmentTime) {
        this.appointmentTime = appointmentTime;
    }

    public String getRegTime() {
        return this.sdf.format(this.regTime);
    }

    public void setRegTime(Date regTime) {
        this.regTime = regTime;
    }

    public String getOfficeName() {
        return officeName;
    }

    public void setOfficeName(String officeName) {
        this.officeName = officeName;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Long getQueueNumber() {
        return queueNumber;
    }

    public void setQueueNumber(Long queueNumber) {
        this.queueNumber = queueNumber;
    }

    public Integer getDocPrice() {
        return docPrice;
    }

    @Override
    public String toString() {
        return "undoVo{" +
                "regId=" + regId +
                ", docName='" + docName + '\'' +
                ", appointmentTime=" + appointmentTime +
                ", regTime=" + regTime +
                ", officeName='" + officeName + '\'' +
                ", state=" + state +
                ", queueNumber=" + queueNumber +
                ", docPrice=" + docPrice +
                ", sdf=" + sdf +
                '}';
    }

    public void setDocPrice(Integer docPrice) {
        this.docPrice = docPrice;
    }

}
